export default defineEventHandler(async (event) => {
    const body = await readBody(event); // 使用readBody方法
    const { username, password } = body
    if (username == '123' && password == '123') {
        return { 'success': true, mes: '登录成功' }
    } else {
        return { 'success': false, mes: '账号或密码错误' }
    }

})